package xtu.www.common.router;

import android.content.Context;
import android.content.Intent;

import xtu.www.common.router.rule.Rule;

/**
 * Created by huilin on 2017/6/15.
 */

public class Router {

    public static void addRule(String scheme, Rule rule) {
        RouterInternal.getIns().addRule(scheme, rule);
    }

    public static void route(String pattern, Class aClass) {
        RouterInternal.getIns().router(pattern, aClass);
    }

    public static Intent invoke(Context context, String pattern) {
        return RouterInternal.getIns().invoke(context, pattern);
    }

}
